<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 addon_domains_setup_redirect_done.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.0
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$output = <<<EOFpacman
<cpanel SubDomain="setsuburl($FORM{'domain'},$FORM{'url'})">
EOFpacman;

//
// For the record, we hate having to use a 'done' page.
//

$html_root_path = '../../';
include $root_path.'common.php';
$page_title = $lang['redirect_saved'];
include $root_path.'page_header.php';

$domain = <<<EOFpacman
<cpanel sprint="$FORM{'domain'},[:comma:],0">
EOFpacman;

$redirect = <<<EOFpacman
<cpanel print="$FORM{'url'}">
EOFpacman;

message_done(sprintf($lang['addon_redirect_saved'], $domain, $redirect), $output, 'addon_domains_manage.php', $lang['addon_domains'], $page_title);

?>